//
//  MPLockHelper.h
//  BBVoice
//
//  Created by Hyukooooh on 2024/10/17.
//

#import <Foundation/Foundation.h>
//手势或数字密码输入错误次数
#define ERROR_TIMES @"gesture_password_input_error_times"
//应用锁类型状态
#define OPEN_PASSWORD_STYLE @"open_password_style"
//是否显示加密相册锁屏视图
#define SHOW_ALBUM_LOCK_VIEW @"show_album_lock_view"
NS_ASSUME_NONNULL_BEGIN

@interface MPLockHelper : NSObject
+ (BOOL)coreArchiveBoolforKey:(NSString *)key;

+ (BOOL)hasOpenGesturesPassowrd;

+ (void)openGesturesPassword:(BOOL)success ;

+ (BOOL)hasOpenIDPassword;

+ (void)openIDPassword:(BOOL)success;

+ (NSInteger)getUnregisterCount;

+ (void)resetUnregisterCount:(NSInteger)count;

+ (BOOL)hasCLLockPassword;

///关闭应用锁清理本地数据
+ (void)closeApplicationLockClearLocalData ;

///开启应用锁保存本地数据
+ (void)openApplicationLockSaveLocalData ;

+ (void)clearAboutPasswordLocalValue;

#pragma mark -- 锁屏
///注册首次设置密码
+ (void)showFirstSettingLockVCInVC:(UIViewController *)vc successBlock:(void (^)(void))successBlock;
+ (void)judgeShowLockViewWithDoNotCareShake:(BOOL)doNotCareShake showShake:(BOOL)showShare;
+ (void)closeApplicationLockShowInVc:(UIViewController *)viewController forgetPwdBlock:(void(^)(void))forgetPwdBlock successBlock:(void (^)(NSString *pwd))successBlock;
+ (void)openApplicationLockShowInVc:(UIViewController *)viewController successBlock:(void (^)(NSString *pwd))successBlock;
+ (void)showModifyLockVCInVC:(UIViewController *)viewController forgetPwdBlock:(void(^)(void))forgetPwdBlock;
@end

NS_ASSUME_NONNULL_END
